package me.hetong.caigou.entity;

import cn.hutool.core.util.IdUtil;
import cn.hutool.json.JSONUtil;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 棋谱
 *
 * @author hetong
 */
@Data
public class Qipu {
    private String id;
    private String title = "标题";
    private String match = "赛事";// 比赛名称
    private String matchDate = "比赛日期";// 比赛日期
    private String red = "红方棋手";// 红方选手
    private String black = "黑方棋手";// 黑方选手
    private String redTeam = "红队";// 红方棋队
    private String blackTeam = "黑队";// 黑方棋队
    private String result = "结果";// 结果:先胜,先和,先负
    private String timeRule = "计时规则";// 计时规则
    private String lun = "轮";
    private LocalDateTime createTime = LocalDateTime.now();// 创建时间
    private List<Zhao> zhaoList;
    private String path;// 保存路径
    private String remark;

    public Qipu() {
        this.id = IdUtil.simpleUUID();
    }

    @Override
    public String toString() {
        return JSONUtil.toJsonStr(this);
    }
}